package cn.wuyu.baselibrary.app;

import android.os.Environment;

import cn.wuyu.baselibrary.BuildConfig;

/**
 * Created by xuzongmeng on 2016/6/7.
 * x
 */
public class APPConfig {
	public static String getFilePathInSDCard(String dir, String fileName) {
		return Environment.getExternalStorageDirectory() + "/" + dir + java.io.File.separator + fileName;
	}
	
	/* 环境配置 由gradle自动生成读 BuildConfig */
	public static boolean DEBUG = BuildConfig.DEBUG;
	public static class Network {
		public static String WU_YU_BASE_URL = BuildConfig.douwenBaseUrl;
		/*websocket*/
		public static String Chat_address = BuildConfig.chatAddress;
		public static String Push_address = BuildConfig.pushAddress;
//		public static int SOCKET_SERVER_PORT = BuildConfig.socketServerPort;
	}
	

	/**
	 * 本地环境
	 */
//	public static boolean DEBUG = BuildConfig.DEBUG;
//	private static String IP="192.168.3.202";
//	//	public static boolean DEBUG = false;
//	public static class Network {
//		/*酒店 机票*/
//		public static String WU_YU_BASE_URL = BuildConfig.hotelBaseUrl;
//		/*商品*/
//		public static String WU_YU_GOODS_BASE_URL = "http://192.168.3.202:8091/";
//		/*socket长连接*/
//		public static String SOCKET_SERVER_ADDRESS = BuildConfig.socketServerAddress;
//		public static int SOCKET_SERVER_PORT = BuildConfig.socketServerPort;
//	}
	
	/**
	 * 缓存key
	 */
	public static class Cache {
		/*用户信息key*/
		public static final String USER_INFO = "user_info";
		/*轮播图*/
		public static final String HOMEPAGE_ADVERTISEMENT = "homepage_advertisement";
		/*商品类别*/
		public static final String GOODS_CATEGORIES = "goods_categories";
		/*商品推荐*/
		public static final String GOODS_LIST_NEWS = "goods_list_news";
		
	}
	/**
	 * webView url
	 */
	public static class Html {
//		public static final String copy_right = BuildConfig.webViewbaseUrl + "copyRight";
//		public static final String software_license_agreement = BuildConfig.webViewbaseUrl + "softwareLicenseAgreement";

	}
}
